﻿using System;
using System.Threading.Tasks;
using Deer.Util;
using Letter.IO.Transports;

namespace Telex;

abstract class ANetwork
{
    public Action<ARcpConnection> OnConnect;
    public Action<ARcpConnection> OnDisconnect;

    protected abstract AConnection OnConfigureConnection(object token);

    public virtual ValueTask StopAsync()
    {
        return ValueTaskUtil.CompletedTask;
    }
}